package com.coollang.smartbra.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.coollang.smartbra.R;
import com.coollang.smartbra.model.ViconDataRecycleData;

import java.util.List;

/**
 * @author: Timmy
 * @data: 2017/12/12
 * @Fuction:
 */

public class ViconDataAdapter extends BaseQuickAdapter<ViconDataRecycleData,BaseViewHolder> {
    public ViconDataAdapter(List<ViconDataRecycleData> data) {
        super(R.layout.item_vicon_data, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, ViconDataRecycleData data) {
        holder.setText(R.id.tv_action_title, data.getTvTitle())
                .setImageResource(R.id.iv_image, data.getBitmap());
    }
}
